package com.myhome.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @Author QYiXin
 * @Date 2021 10 17 14 28
 * {
 *   "oldpassword": "c08777d0029c55d0aee13aacb67bc4cc",
 *   "newpassword": "5d93ceb70e2bf5daa84ec3d0cd2c731a",
 *   "validateCode": "135365"
 * }
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户修改密码参数")
public class UpdatePasswordInfo {

    @ApiModelProperty("旧密码")
    @NotBlank
    private String oldpassword;

    @ApiModelProperty("新密码")
    @NotBlank
    private String newpassword;

    @ApiModelProperty("验证码")
    @NotBlank
    private String validateCode;
}
